<%@page import="com.etc.controller.PatientController"%>
<%@page import="com.etc.entity.HistoryInfo"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!-- Bootstrap用到的HTML元素和CSS属性需要HTML5 doctype。因此每个使用Bootstrap的页面都应该包启HTML5声明。-->

<html lang="zh-CN">
  <!-- lang属性表示当前文档显示的语言，在很多国际化的网站中会遇到，zh-CN定义语言为中文，en定义语言为英语 -->
  <!-- html lang="zh-CN"解决Mac版Firefox中文字体显示问题，Bootstrap也建议加上 -->
  <head>
    <title>病人集成视图</title>
	<meta charset="utf-8">
	<link rel="shortcut icon" href="${pageContext.request.contextPath}/assets/images/logo.png" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link type="text/css" href="${pageContext.request.contextPath}/assets/css/bootstrap.min2.css" rel="stylesheet" />
	<link type="text/css" href="${pageContext.request.contextPath}/assets/css/bootstrap-switch.css" rel="stylesheet">
	<style>
		*{
			font-family:"微软雅黑","黑体","宋体"; 
		}
		.space_lg{
			height:50px;
			clear: both;
			text-align:right;
		}
		.space_md{
			height:30px;
			clear: both;
		}
		.space_sm{
			height:10px;
			clear: both;
			
		}
		.space_demo{
			border-bottom:1px solid black;
		}
		
		@media (min-width: 768px) {
		.container {
			width: 750px;
		  }
		  #scrollDiv{
			left:0px;
		  }
		}
		@media (min-width: 992px) {
		  .container {
			width: 990px;
		  }
		  #scrollDiv{
			left:0px;
		  }
		}
		@media (min-width: 1200px) {
		  .container {
			width: 1200px;
		  }
		}
		@media (min-width: 1400px) {
		  .container {
			width: 1350px;
		  }
		}
		@media (min-width: 1800px) {
		  .container {
			width: 1750px;
		  }
		  #scrollDiv{
			left:180px;
		  }
		}
		
		.lnk-tools {
			position:fixed;
			bottom:180px;
			right: 80px;
			_position:absolute;
			z-index:999;
			_top:expression(documentElement.scrollTop);
		}
		.lnk-tools button{width: 100px;}
	</style>
  </head>

  <body data-target="#scrollDiv" data-offset="0" data-spy="scroll">
  
	
	<c:if test="${requestScope.patient==null }">
		   <jsp:forward page="../selPatientById/${sessionScope.patientlogin.patientloginid }"></jsp:forward>  
		
	</c:if>
	
    <!-- 导航栏 -->
    <iframe src="${pageContext.request.contextPath}/front/header.html" style="margin-left:5%" width="80%" height= "10%" name="topFrame" 
scrolling="No"  noresize="noresize" frameborder="0" id="topFrame"></iframe>
	<!-- Start Menu Area -->
					<div class="navbar-collapse collapse" style="margin-right:30%;margin-top:-5%" >
						<ul class="nav navbar-nav navbar-right">
							<li><a href="${pageContext.request.contextPath}/front/index.jsp" >首页</a></li>
							<li ><a href="${pageContext.request.contextPath}/front/about.html" >关于我们</a></li>
							
							
									<li><a href="${pageContext.request.contextPath}/front/doctors.jsp" >医生</a></li>
							
							
									<li><a href="${pageContext.request.contextPath}/front/departments.html" >科室部门</a></li>
						
							
							<li><a href="${pageContext.request.contextPath}/front/contact.html" >联系</a></li>
						</ul>
					</div>
					<!-- Start Menu Area -->

	<div class="container" style="margin-top:80px;margin-left:280px">
		<div class="row">
			<div class="col-md-8">
				<div class="jumbotron" style="height:120px;padding:10px;" >
					<div class="row">
						<div class="col-md-2">
						<form action="fileupload" method="post" enctype="multipart/form-data">
						<input type="file"  style="opacity:0; filter:alpha(opacity=0); height: 100px;  position: absolute; top: 0; left: 0; z-index: 9;" onchange="handleFiles(this,'icon')">
						<img src="${pageContext.request.contextPath}/assets/images/people.jpg" style="height:100px;width:100px" class="img-thumbnail" id="icon">
						<input type="button" id="saveHeadImg" value="保存" style="display:none;margin-left:120px;margin-top:-55px;">
						</form>
						</div>
						<div class="col-md-7" style="margin-left: -15px">
							<h3 class="text-info">${requestScope.patient.patientname}&nbsp;&nbsp;<span class="label label-warning">${requestScope.patient.patientsex}</span>&nbsp;&nbsp;<span class="label label-primary">24</span></h3>
							<span style="margin-top:10px" class="text-info"><strong style="margin-top:10px">最近一次就诊：</strong></span><span class="text-primary">2018/09/30</span>&nbsp;<strong>|</strong>&nbsp;
							<span class="text-info"><strong>最近一次诊断：</strong></span><span class="text-primary">心血管疾病</span>&nbsp;<strong>|</strong>&nbsp;
							<img src="${pageContext.request.contextPath}/assets/images/sc.png" style="height:30px;" title="收藏" class="img-thumbnail">
						</div>
						<div class="col-md-3">
							<p style='margin-top:30px;'><a class="btn btn-primary" role="button" href="#myModal" data-toggle="modal" >编辑个人信息&raquo;</a></p>
							
						</div>
					</div>
				</div>
			</div>
			
	<!-- 模态框更新信息（Modal）开始 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">信息编辑</h4>
            </div>
            <div class="modal-body">
          <form action="" method="post">
          <input type="hidden" id="patientId" name="userId">
          <div class="form-group">
          
            <label for="patientName" class="control-label">姓名*</label>
            <input type="text" class="form-control" id="patientName" value="${requestScope.patient.patientname }" >
          </div>
          
          
          <div class="form-group">
          
            <label for="patientSex" class="control-label">性别*</label>
            <input type="text" class="form-control" id="patientSex" value="${requestScope.patient.patientsex }">
          </div>
          
          
          <div class="form-group">
          
            <label for="patientAge" class="control-label">年龄*</label>
            <input type="text" class="form-control" id="patientAge" value="${requestScope.patient.patientage }">
          </div>
          
          <div class="form-group">
          
            <label for="patientNation" class="control-label">民族*</label>
            <input type="text" class="form-control" id="patientNation" value="${requestScope.patient.patientnation }">
          </div>
          
          <div class="form-group">
          
            <label for="patientTel" class="control-label">联系方式*</label>
            <input type="text" class="form-control" id="patientTel" value="${requestScope.patient.patienttel }">
          </div>
          
          <div class="form-group">
          
            <label for="patientAddress" class="control-label">通讯地址*</label>
            <input type="text" class="form-control" id="patientAddress" value="${requestScope.patient.patientaddress }">
          </div>
          
          <div class="form-group">
          
            <label for="patientRelationName" class="control-label">联系亲属*</label>
            <input type="text" class="form-control" id="patientRelationName" value="${requestScope.patient.patientrelationname }">
          </div>
          
          <div class="form-group">
          
            <label for="patientRelationTel" class="control-label">亲属联系方式*</label>
            <input type="text" class="form-control" id="patientRelationTel" value="${requestScope.patient.patientrelationtel }">
          </div>
         
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" id="commit" class="btn btn-primary">提交更改</button>
            </div>
         
          </form>
            </div>
          
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- 模态窗口更新信息结束 -->		


		
		</div>
		<div class="row">
			<div class="col-md-8">
				<ul id="myTab1" class="nav nav-tabs bg-info">
				  <li class="active"><a href="#myLi1" data-toggle="tab">病历概要</a></li>
				  
				</ul>
				</div>
				<div id="myTabContent" class="tab-content" style="margin-left:15px">
					
					<!-- 第一块操作区 -->
					<div class="tab-pane fade in active" id="myLi1">
					    <div id="myLi11">
							<div class="space_sm"></div>
							<div class="row">
								<div class="col-md-8">
									<div class="row">
										<div class="col-md-12">
											<div class="panel panel-warning">
											   <div class="panel-heading" style="background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b;">
												  <h3 class="panel-title" style="color:#8a6d3b;font-family:微软雅黑">病人基本信息</h3>
											   </div>
											   <div class="panel-body">
												  <span class="text-info"><strong>患者姓名：</strong></span><span class="text-primary">${requestScope.patient.patientname }</span>&nbsp;<strong>|</strong>&nbsp;
												  <span class="text-info"><strong>年龄：</strong></span><span class="text-primary">${requestScope.patient.patientage }</span>&nbsp;<strong>|</strong>&nbsp;
												  <span class="text-info"><strong>性别：</strong></span><span class="text-primary">${requestScope.patient.patientsex }</span>&nbsp;<strong>|</strong>&nbsp;
												  <span class="text-info"><strong>婚姻状况：</strong></span><span class="text-primary">已婚</span>
												  <br>
												  <span class="text-info"><strong>民族：</strong></span><span class="text-primary">${requestScope.patient.patientnation }</span>&nbsp;<strong>|</strong>&nbsp;
												  <span class="text-info"><strong>联系电话：</strong></span><span class="text-primary">${requestScope.patient.patienttel }</span>&nbsp;<strong>|</strong>&nbsp;
												  <span class="text-info"><strong>通讯地址：</strong></span><span class="text-primary">${requestScope.patient.patientaddress }</span>&nbsp;<strong>|</strong>&nbsp;
												  
											   </div>
											</div>
										</div>
									</div>
									<div class="space_sm"></div>
									<div class="row">
										<div class="col-md-12">
											<ul id="myTab4" class="nav nav-tabs">
											   <li class="active"><a href="#reco1" data-toggle="tab">就诊记录</a></li>
											   
					
											    <li><a href="#reco4" data-toggle="tab">预约记录</a></li>
											   
											</ul>
											<div id="myTabContent" class="tab-content">
											   <div class="tab-pane fade in active" id="reco1">
												  <div class="space_md"></div>
												  <table class="table">
				
												   <thead>
												  
													  <tr>
														 <th>病症</th>
														 <th>时间</th>
														 <th>主治医生</th>
														 <th>处方</th>
													  </tr>
												   </thead>
												 
												   <tbody>
												    <c:forEach items="${requestScope.listhistoryInfo}" var="h" varStatus="i">
												   		 <tr class="active" >
														 <td>${h.diseaseName}</td>
														 <td id="medicalDate${i.index}">${h.medicalDate }</td>
														 <td>${h.doctorName }</td>
														 <td><span id="detailInfo" onclick="detail(${i.index})"><a href="#reco3" class="nav nav-tabs" data-toggle="tab">处方详情</a></span></td>
													  </tr>
												   </c:forEach>
													 
												   </tbody>
												</table>
											   </div>
											   
							
											   
											   <input type="hidden" id="index">
											   <div class="tab-pane fade" id="reco3">
												  <div class="space_md"></div>
												  <table class="table">
				
												   <thead>
													  <tr>
														 <th>药品名称</th>
														 <th>药品单价</th>
														 <th>药瓶数量</th>
														 <th>医嘱</th>
														 <th>药品总价</th>
														 <th>操作</th>
													  </tr>
												   </thead>
											
												   <tbody>
												   
												   
												   <%
												   int i = 0;
												   if(PatientController.listMedicineInfo!=null) {
												   //List<HistoryInfo> list = PatientController.listMedicineInfo; 
												   
												   for(HistoryInfo history:PatientController.listMedicineInfo){	
												   			
												   %>
												  
												   		
												   		 <tr class="success" >
												   		  
														 <td ><%=history.getMedicineName() %></td>
														 <td id="medicinePrice<%=i %>"><%=history.getMedicinePrice() %></td>
														 <td >×<span id="tmedicineNum<%=i %>"><%=history.getTmedicineNum() %></span></td>
														 <td><%=history.getMedicalOrders() %></td>
														 <td id="totalPrice<%=i %>"></td>
														 <td><a href="${pageContext.request.contextPath }/front/personalinfo.jsp">返回</a></td>
													  </tr>
													  <%
													i++;  
												   }
												   }
												   %>
												   
													 
													  
													  
													  
												   </tbody>
												</table>
												<input type="hidden" id="nums" value=<%=i %>>
											   </div>
											   
						
											   
											   <div class="tab-pane fade" id="reco4">
												   <div class="space_md"></div>
												  <table class="table">
												   
												   <thead>
													  <tr>
														 <th>预约医生</th>
														 <th>时间</th>
														 <th>所属部门</th>
														 <th>操作</th>
													  </tr>
												   </thead>
												   <tbody>
												    <c:forEach items="${requestScope.listOrderInfo}" var="o" varStatus="i">
													  <tr class="active">
														 <td>${o.doctorName}</td>
														 <td id="orderTime${i.index}">${o.registrationTime }</td>
														 <td>${o.outPatientServiceTypeName}</td>
														 <td><a id="cancleOrder" href="javascript:;" onclick="cancleOrder(${i.index })">取消预约</a></td>
													  </tr>
													  
													 </c:forEach> 
													 
													
												   </tbody>
												</table>
											   </div>
											   
											   <!--?layui分页开始?-->
							<div id="pageDiv" style="text-align: center"></div>
						<!--?layui分页结束?-->
											   
											</div>
										</div><!-- /.col-记录 -->
									</div>									
								</div>
								
							
							</div>
						</div> 
					</div>
					
					<!-- 第二块操作区 -->
					
					
					<!-- 第三块操作区 -->
					
				</div>
			
	    </div>
	</div>
	
	<div class="modal fade" id="modalTest" tabindex="-1" role="dialog">
	  <div class="modal-dialog">
		<div class="modal-content">
		  <div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title">登录平台</h4>
		  </div>
		  <div class="modal-body">
			<p>One fine body&hellip;</p>
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
			<button type="button" class="btn btn-primary">Save changes</button>
		  </div>
		</div><!-- /.modal-content -->
	  </div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
	
	
	
	<div class="modal fade" id="modalTest2" tabindex="-1" role="dialog">
	  <div class="modal-dialog">
		<div class="modal-content">
		  <div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title">检验报告</h4>
		  </div>
		  <div class="modal-body">
			<p>红细胞沉淀率测定&hellip;</p>
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
		  </div>
		</div><!-- /.modal-content -->
	  </div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
	
	<!-- 模态框（Modal）开始 -->
<div class="modal fade" id="InsertModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">信息编辑</h4>
            </div>
            <div class="modal-body">
          <form action="" method="post">
          <input type="hidden" id="patientId" name="userId">
          <div class="form-group">
          
            <label for="patientName" class="control-label">姓名*</label>
            <input type="text" class="form-control" id="patientName" value="${requestScope.patient.patientname }" >
          </div>
          
          
          <div class="form-group">
          
            <label for="patientSex" class="control-label">性别*</label>
            <input type="text" class="form-control" id="patientSex" value="${requestScope.patient.patientsex }">
          </div>
          
          
          <div class="form-group">
          
            <label for="patientAge" class="control-label">年龄*</label>
            <input type="text" class="form-control" id="patientAge" value="${requestScope.patient.patientage }">
          </div>
          
          <div class="form-group">
          
            <label for="patientNation" class="control-label">民族*</label>
            <input type="text" class="form-control" id="patientNation" value="${requestScope.patient.patientnation }">
          </div>
          
          <div class="form-group">
          
            <label for="patientTel" class="control-label">联系方式*</label>
            <input type="text" class="form-control" id="patientTel" value="${requestScope.patient.patienttel }">
          </div>
          
          <div class="form-group">
          
            <label for="patientAddress" class="control-label">通讯地址*</label>
            <input type="text" class="form-control" id="patientAddress" value="${requestScope.patient.patientaddress }">
          </div>
          
          <div class="form-group">
          
            <label for="patientRelationName" class="control-label">联系亲属*</label>
            <input type="text" class="form-control" id="patientRelationName" value="${requestScope.patient.patientrelationname }">
          </div>
          
          <div class="form-group">
          
            <label for="patientRelationTel" class="control-label">亲属联系方式*</label>
            <input type="text" class="form-control" id="patientRelationTel" value="${requestScope.patient.patientrelationtel }">
          </div>
         
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" id="commit" class="btn btn-primary">提交更改</button>
            </div>
         
          </form>
            </div>
          
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- 模态窗口结束 -->
	
    <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/switch-need1.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/bootstrap-switch.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/switch-need2.js"></script>
	<script type="text/javascript">
	$(function(){
		function openMymodal(){
			alert(1)
			$('#InsertModal').modal('show');
		}
	})	
	
		
	</script>
	<script type="text/javascript">
	//文件上传
	function handleFiles(obj,id) {
	    file = document.getElementById("icon");
	    var files = obj.files;
	    img = new Image();
	    if(window.URL){
	        //File API
	        img.src = window.URL.createObjectURL(files[0]); //创建一个object URL，并不是你的本地路径
	        img.onload = function(e) {
	        window.URL.revokeObjectURL(this.src); //图片加载后，释放object URL
	        }
	    }
	    file.src=img.src;
	    //上传文件
	        var fd = new FormData(),//实例化一个表单
	        xhr = new XMLHttpRequest();
	        fd.append('headimg', files[0]);//追加图片元素
	        xhr.open('post', 'user.php?act=act_edit_img');//请求方式，请求地址
	        xhr.send(fd);
	        document.getElementById("saveHeadImg").style.display="block";//显示保存按钮
	}
	</script>
	
	<!-- layui的部分呢 -->
	<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/layui/css/layui.css" media="all">
	<script src="${pageContext.request.contextPath}/assets/layui/layui.js" charset="utf-8"></script>
	 <script type="text/javascript">
	   layui.use(['laypage', 'layer'], function(){
		  var laypage = layui.laypage
		  ,layer = layui.layer;
		
		//完整功能
		  laypage.render({
		    elem: 'pageDiv'
		    ,count: ${requestScope.listhistoryInfoSize}
		    ,curr:${requestScope.page}
		   ,limit:1
		    ,layout: ['count', 'prev', 'page','limit','next', 'skip']
		    ,jump: function(obj,first){
		      
		      
		    //首次不执行
		      if(!first){
		    	  
		    	//do something
		    	  location.href="${pageContext.request.contextPath}/selInfo/${sessionScope.patientlogin.patientloginid }/"+obj.curr+"/"+obj.limit;
		      }
		    }
		  });
		 
		}); 
	
	
	
	</script> 
	

	<script>
		$(function(){
			$('#modalTest').modal({
				backdrop:true,//true:有遮罩背景&点击可关闭modal;false:没遮罩&不可点击关闭;'static':有遮罩不可点击关闭（默认是true）
				keyboard:true,//键盘上的esc键被按下时关闭模态框（默认是true）
				show:false,//模态框初始化之后就立即显示出来（默认是true）
			});
			$('#switch-offColor').on('switchChange.bootstrapSwitch', function(event, state) {
				if(state){
					$("#myLi22").show();
					$("#myLi21").hide();
				}else{
					$("#myLi21").show();
					$("#myLi22").hide();
				}
			  console.log(this); // DOM element
			  console.log(event); // jQuery event
			  console.log(state); // true | false
			});
			
			$('#switch-offColor2').on('switchChange.bootstrapSwitch', function(event, state) {
				if(state){
					$("#myLi32").show();
					$("#myLi31").hide();
				}else{
					$("#myLi31").show();
					$("#myLi32").hide();
				}
			  console.log(this); // DOM element
			  console.log(event); // jQuery event
			  console.log(state); // true | false
			});
		})
	</script>
	<script type="text/javascript">
	
	//查看详细处方
	function detail(i){
		
		var medicalDate=$("#medicalDate"+i).html();
		
		$.ajax({
			
			url:"${pageContext.request.contextPath}/selMedicineInfoByDate/"+${requestScope.patient.patienttel}+"/"+medicalDate,
			type:"get",
			
			dataType:"json",
			success:function(result){
				
			}
		});
		
	}
	</script>
	<script type="text/javascript">
	
	
	//取消预约
	function cancleOrder(i){
		//var orderTime=$(this).parent("tr").find("#orderTime").html();
		var orderTime= $("#orderTime"+i).html();
		var flag  = confirm("确定取消预约?");
		
		if(flag==true){
			$.ajax({
				url:"${pageContext.request.contextPath}/delOrderByTime/"+orderTime,
				type:"delete",
				contentType:"application/json",
				data:JSON.stringify({
					"patienttel":${requestScope.patient.patienttel}
				}),
				success:function(result){
					
				layui.use('layer', function(){
		         	var layer = layui.layer;
		       	});
 				
				if (result==true) {
					layer.msg('<span style="color:white;font-size:20px"">取消预约成功</span>');
					icon:1;
					time:1000;
					location.href="personalinfo.jsp";
				} else{
					layer.msg('<span style="color:white;font-size:20px"">取消预约失败</span>');
					icon:1;
					time:1000;
				}
					/* if(result==true){
					alert("取消预约成功")
					location.href="personalinfo.jsp";
					} */
				}
				
			});
		}
		
	}
	</script>
	<script type="text/javascript">
	$(function(){
		//计算总结价格
		window.onload=function(){
			
			var nums=$("#nums").val();
			var list=parseInt(nums);
			for(var i = 0;i<list;i++){
				var price=$("#medicinePrice"+i).html();
				var num=$("#tmedicineNum"+i).html();
				var totalPrice=parseInt(num)*parseFloat(price);
				var totalPrice=$("#totalPrice"+i).html(totalPrice);
			} 
		}
		
	//ajax更新操作
	$("#commit").click(function(){
			$.ajax({
				url:"${pageContext.request.contextPath}/updatePatient/"+"1",
				type:"PUT",
				contentType:"application/json",
				data:JSON.stringify({
					"patientid":1,
					"patientname":$("#patientName").val(),
					"patientsex":$("#patientSex").val(),
					"patientage":$("#patientAge").val(),
					"patientnation":$("#patientNation").val(),
					"patienttel":$("#patientTel").val(),
					"patientaddress":$("#patientaddress").val(),
					"patientrelationname":$("#patientRelationName").val(),
					"patientrelationtel":$("patientRelationTel").val()
				}),
				success:function(result){
					
					if(result==true){
						layer.msg('<span style="color:white;font-size:20px"">修改信息成功</span>');
						icon:1;
						time:1000;
						location.href="personalinfo.jsp"
					}else{
						layer.msg('<span style="color:white;font-size:20px"">修改信息失败</span>');
						icon:1;
						time:1000;
					}
					
					
				}
				});
			});
		});
	
		
	</script>
  </body>
</html>
